<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class MakeCategoriesData extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        $categories = [
            [
                'name'=>'Android',
                'description'=>'Android技术交流'
            ],
            [
                'name'=>'IOS',
                'description'=>'IOS业界动态'
            ],
            [
                'name'=>'Web',
                'description'=>'Web圈'
            ],
            [
                'name'=>'产品',
                'description'=>'产品'
            ],
        ];


        DB::table('categories')->insert($categories);
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        DB::table('categories')->truncate();
    }
}
